using System;
using System.Collections;
using System.ComponentModel;
using System.Runtime.Serialization;


namespace Entities
{
    [Serializable]
    [System.Data.Services.Common.DataServiceKey("ID")]
    public class QuestionAnswer:EntityBase
    {
        #region QuestionAnswer Properties
        private System.String _Title;
		[DataMember] public virtual System.String Title
		{
			get
			{
				return _Title;
			}
			set
			{
                if (_Title != value)
                {
                    _Title = value;
                    OnPropertyChanged("Title");
                }
			}
		}
        private System.String _Description;
		[DataMember] public virtual System.String Description
		{
			get
			{
				return _Description;
			}
			set
			{
                if (_Description != value)
                {
                    _Description = value;
                    OnPropertyChanged("Description");
                }
			}
		}
        private System.DateTime? _CreateDate;
		[DataMember] public virtual System.DateTime? CreateDate
		{
			get
			{
				return _CreateDate;
			}
			set
			{
                if (_CreateDate != value)
                {
                    _CreateDate = value;
                    OnPropertyChanged("CreateDate");
                }
			}
		}
        #endregion
        public override bool Equals(object obj)
        {
            if (obj == this) return true;
            if (obj == null) return false;
            if (obj is QuestionAnswer)
            {
                return (this.ID == (obj as QuestionAnswer).ID);
            }
            return false;
        }
        public override int GetHashCode()
        {
            return ID.GetHashCode();
        }
    }
}